package com.shuiyu.cloud.service.impl;

import com.shuiyu.cloud.dao.PaymentDao;
import com.shuiyu.cloud.entities.Payment;
import com.shuiyu.cloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author rjw
 * <p>Description:   </p>
 * @ClassName PaymentServiceImpl
 * @time 2021/7/13 17:20
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    public Payment getPaymentById(Long id){
        return paymentDao.getpaymentById(id);
    }
}
